//package com.wenwo.cloud.biz.domain.data.infrastructure.config.datasource;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import javax.sql.DataSource;
//
//import org.springframework.aop.Advisor;
//import org.springframework.aop.aspectj.AspectJExpressionPointcut;
//import org.springframework.aop.support.DefaultPointcutAdvisor;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.boot.jdbc.DataSourceBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.DependsOn;
//import org.springframework.context.annotation.Primary;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
//import org.springframework.transaction.PlatformTransactionManager;
//import org.springframework.transaction.TransactionDefinition;
//import org.springframework.transaction.interceptor.DefaultTransactionAttribute;
//import org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource;
//import org.springframework.transaction.interceptor.TransactionInterceptor;
//
//import lombok.extern.slf4j.Slf4j;
//
///**
//* 数据源配置
//* @author 刘小龙 xiaolong.liu@pingcl.com
//* @Date       ：Created in 2021/03/10
//* @Modified By：
//* @Version: v1.0.0$
//*/
//@Configuration
//@Slf4j
//public class DataSourceConfig {
//	  /**
//	   *
//	   * @return
//	   */
//	@Bean(name="primary")
//    @ConfigurationProperties(prefix = "spring.datasource.one")
//    DataSource primary(){
//		return  DataSourceBuilder.create().build();
//    }
//}
//
